﻿{include file="public/header"}
<title>需求列表</title>
</head>
<body>
<nav class="breadcrumb">
    <i class="Hui-iconfont">&#xe67f;</i> 首页
    <span class="c-gray en">&gt;</span> 客户管理
    <span class="c-gray en">&gt;</span> 预约列表
    <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
</nav>
<div class="page-container">

    <div class="mt-20">
        <div class="title-border">
            <div class="flex1">序号</div>
            <div class="flex1">姓名</div>
            <div class="flex1">手机号</div>
            <div class="flex1">资格报名</div>
            <div class="flex1">来源<span style="color: red">扫码推荐</span></div>
            <div class="flex1">时间</div>
            <div class="flex1">处理人</div>
            <div class="flex1">处理时间</div>
            <div class="flex1">处理结果</div>
            <div class="flex1">状态</div>
            <div class="flex1">操作</div>
        </div>
        {volist name='data' id='vo'}
        <div class="content-border">
            <div class="flex1">{$vo.customer_id}</div>
            <div class="flex1">{$vo.username}</div>
            <div class="flex1">{$vo.mobile}</div>
            <div class="flex1">{$vo.type}</div>
            <div class="flex1">{$vo.lai}</div>
            <div class="flex1"><?php if(!empty($vo['created_time'])){?> {:date('Y-m-d H:i:s',$vo.created_time)}  <?php } ?></div>
            <div class="flex1">{$vo.admin_id}</div>
            <div class="flex1">{$vo.last_login_time}</div>
            <div class="flex1">{$vo.context}</div>
            <div class="flex1"><?php if($vo['status']==0){ ?> 未处理<?php }else{ ?> 已处理 <?php } ?></div>
            <div class="flex1">
                <?php if($vo['status']==0){ ?>
                    <a class="ch-button ch-green edit" data-id="{$vo.customer_id}" href="javascript:;" title="编辑">未处理</a>
                    <?php }else{?>
                    <span class="label label-danger">已处理</span>
                <?php } ?>
            </div>
        </div>
        {/volist}
        <div class="pages" style="float: right">{$data->render()}</div>
    </div>
</div>

{include file="public/footer"}
<script type="text/javascript">
    $('.edit').click(function () {
        var id=$(this).attr('data-id');
        var src="{:Url('index/Customer/edits')}";
        layer.open({
            type: 2,
            area: ['60%', '80%'],
            title: '咨询处理',
            content: src+'?customer_id='+id
        });
    });

</script>
</body>
</html>